﻿<!DOCTYPE html>
<html>
<head>
    <meta content="text/html; charset=utf-8" />

    <title>@(ViewBag.Title ?? "Grenadiers")</title>
	
    <link href="@Url.Content("~/Content/rcarousel.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/fullcalendar.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/dcmegamenu.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/themes/smoothness/jquery-ui-1.8.21.custom.css")" rel="stylesheet" type="text/css" />

    <link href="@Url.Content("~/Content/prettify-jPlayer.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/jplayer.blue.monday.css")" rel="stylesheet" type="text/css" />
    
    <script src="@Url.Content("~/Scripts/jquery-1.7.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.21.custom.min.js")" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/jquery.hoverIntent.minified.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.dcmegamenu.1.3.3.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.ui.rcarousel.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-timepicker-addon.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.qtip-1.0.0-rc3.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/fullcalendar.min.js")" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/jquery.jplayer.min.js")" type="text/javascript"></script>
    <!--[if lt IE 9]>
    <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>

    <link href="@Url.Content("~/Content/SiteFixIE.css")" rel="stylesheet" type="text/css" />
    
    <![endif]-->

    <script type="text/javascript">
        $(document).ready(function () {
            $('#mega-menu-1').dcMegaMenu();

            if ("@(ViewBag.Partners != null)" == "True" && "@(ViewBag.Partners.Count > 4)" == "True") {
                $("#carousel").rcarousel({
                    auto: {
                        enabled: true,
                        interval: 2000
                    },
                    width: 150,
                    height: 70,
                    margin: 0,
                    visible: 4,
                    step: 1,
                    navigation: { prev: '#lnk_partners_left', next: '#lnk_partners_right' }
                });
            }

            $('#dialog_logon').dialog({
                autoOpen: false,
                modal: true,
                draggable: false,
                resizable: false,
                width: 400,
                height: 'auto',
                title: '@BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Login',
                buttons: [
                    {
                        id: 'dialog_btn_login', text: '@BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Login',
                        click: function () {
                            $('form', this).submit();
                        }
                    },
                    {
                        id: 'dialog_btn_cancel', text: '@BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Cancel',
                        click: function () {
                            $(this).dialog('close');
                        }
                    }
                ]
            });

            $('#lnk_login').click(function () {
                var url = $(this).attr('href');

                $('#dialog_logon').empty().load(url, function () {

                    $('#dialog_logon').dialog('open');
                });

                return false;
            });

            if (String("@(System.Configuration.ConfigurationManager.AppSettings["sessionOpen"])") != "true"){
                 $("#jquery_jplayer_1").jPlayer({
                    ready: function () {
                        $(this).jPlayer("setMedia", {
                            mp3: "./Content/FQS7226CHALLENGEMIDGETAAA.mp3"
                        }).jPlayer("play");
                    },
                    swfPath: "./Content",
                    supplied: "mp3",
                    wmode: "window"
                });
             }
             else{
                 $("#jquery_jplayer_1").jPlayer({
                    ready: function () {
                        $(this).jPlayer("setMedia", {
                            mp3: "./Content/FQS7226CHALLENGEMIDGETAAA.mp3"
                        });
                    },
                    swfPath: "./Content",
                    supplied: "mp3",
                    wmode: "window"
                });   
             }
        });
    </script>
</head>
<body class="@ViewBag.Lang">
    <div id="dialog_logon"></div>
    <div id="page"> 
        <span id="player"></span>
        <!--<div class="playoffs">
            <span class="playoffs-year">2013</span>
            <span class="playoffs-text playoffs-text-left">@BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Playoffs</span>
        </div>
        <div class="playoffs playoffs-right">
            <span class="playoffs-year">2013</span>
            <span class="playoffs-text playoffs-text-right">@BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Playoffs</span>
        </div>-->
        <header>
            
            <div id="title">
                <span class="buttons">
                    @Html.ActionLink(" ", "Index", "Home", null, new { @id = "lnk_grenadiers", @class = "lnk" })
                    <a href="http://www.liguemidgetaaa.ca/" id="lnk_midgetaaa" class="lnk" target="_blank" ></a>
                    <a href="https://www.facebook.com/#!/grenadiersaaa" id="lnk_facebook" class="lnk" target="_blank"></a>
                    <a href="http://twitter.com/grenadiersaaa/" id="lnk_twitter" class="lnk" target="_blank"></a>
                </span>
            </div> 
     	   <!-- <div id="jquery_jplayer_1" class="jp-jplayer"></div>
		    <div id="jp_container_1" class="jp-audio">
			    <div class="jp-type-single">
				    <div class="jp-gui jp-interface">
					    <ul class="jp-controls">
						    <li><a href="javascript:;" class="jp-play" tabindex="1">play</a></li>
						    <li><a href="javascript:;" class="jp-pause" tabindex="1">pause</a></li>
						    <li><a href="javascript:;" class="jp-stop" tabindex="1">stop</a></li>
						    <li><a href="javascript:;" class="jp-mute" tabindex="1" title="mute">mute</a></li>
						    <li><a href="javascript:;" class="jp-unmute" tabindex="1" title="unmute">unmute</a></li>
						    <li><a href="javascript:;" class="jp-volume-max" tabindex="1" title="max volume">max volume</a></li>
					    </ul>
					    <div class="jp-progress">
						    <div class="jp-seek-bar">
							    <div class="jp-play-bar"></div>

						    </div>
					    </div>
					    <div class="jp-volume-bar">
						    <div class="jp-volume-bar-value"></div>
					    </div>
				    </div>
				    <div class="jp-no-solution">
					    <span>Update Required</span>
					    To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
				    </div>
			    </div>         
            </div>
            <div style="clear:both"></div>-->
            <nav>
                <ul id="mega-menu-1">
                    <li class="first">
                        <a href="#">@BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Team</a>
                        <ul>
                            <li>@Html.ActionLink("Formation", "Index", "Players")</li>
                            <li>@Html.ActionLink("Organisation", "Index", "Organisation")</li>
                            <li>@Html.ActionLink(BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Staff, "Index", "Staff")</li>
                            <li>@Html.ActionLink(BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Home, "Index", "Arena")</li>
                        </ul>
                    </li>
                    <li>@Html.ActionLink(BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Calendar, "Index", "Events")</li>
                    <li>
                        <a href="#">@BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Stats</a>
                        <ul>
                            <li>@Html.ActionLink(BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Standings, "Index", "Standings")</li>
                            <li>@Html.ActionLink(BenzInfo.Hockey.Grenadiers.Resources.Dictionary.StatsPlayers, "Index", "StatsPlayers")</li>
                            <li>@Html.ActionLink(BenzInfo.Hockey.Grenadiers.Resources.Dictionary.StatsTeams, "Index", "StatsTeams")</li>
                            <li>@Html.ActionLink(BenzInfo.Hockey.Grenadiers.Resources.Dictionary.StatsGoalies, "Index", "StatsGoalies")</li>
                            <li>@Html.ActionLink(BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Stats + " Plus", "Index", "Stats")</li>
                        </ul>
                    </li>
                    <li>@Html.ActionLink(BenzInfo.Hockey.Grenadiers.Resources.Dictionary.News, "Index", "NewsFiles")</li>
                    <li><a href="#">@BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Medias</a>
                        <ul>
                            <li>@Html.ActionLink(BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Pictures, "Index", "Pictures")</li>
                            <li>@Html.ActionLink(BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Backgrounds, "Index", "Backgrounds")</li>
                            <li>@Html.ActionLink(BenzInfo.Hockey.Grenadiers.Resources.Dictionary.ShopOnline, "Index", "Shop")</li>
                            <li>@Html.ActionLink(BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Contest, "Index", "Contest")</li>
                        </ul>
                    </li>
                    <li>@Html.ActionLink(BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Partners, "Index", "Partners")</li>
                    <li class="last">@Html.ActionLink(BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Tickets, "Index", "Tickets")</li>
                </ul>
                <span id="culture">
                    @Html.ActionLink("FR", "Culture", "Home", new { lang = "fr" }, null)
                    @Html.ActionLink("EN", "Culture", "Home", new { lang = "en" }, null)
                </span>
            </nav>
        </header>
        <section id="main">
            @if (ViewBag.CurrentUser != null)
            {
                <div id="admin">
                    @Html.Partial("Admin")
                </div>
            }
            @RenderBody()
        </section>
        <footer>
            <div id="partners">
                <span class="lbl lbl_partners"></span>
                <a href="#" id="lnk_partners_left" class="lnk"></a>
				<div id="carousel">
                    @if (ViewBag.Partners != null)
                    {
                        foreach (var item in ViewBag.Partners)
                        {
                            <a href="@item.Url" target="_blank" class="partner" style="background-image: url(@Url.Content("~/Utils/ImageHandler.ashx?src=partners/" + item.Picture + "&maxwidth=150&maxheight=70"));"></a>;
                        }
                    }
                </div>
				<a href="#" id="lnk_partners_right" class="lnk"></a>
            </div>
            <div style="text-align:center; color:#700706;">
                © Conception <a style="color:#000042; font-weight:bold;" href="http://www.benz-info.com" target="_blank">Benz Info</a> 2012
            </div>
            <!--<div>
                @Html.Partial("Plan")
            </div>-->

            <div id="login">
                @if (ViewBag.CurrentUser == null)
                {
                    @Html.ActionLink(BenzInfo.Hockey.Grenadiers.Resources.Dictionary.Login, "LogOn", "Users", null, new { @id = "lnk_login" })                    
                }
            </div>
            
        </footer>
        
    </div>
<iframe id="up" name="up" style="height:0px; width:0px;" src="http://www.sk-hockey.com/skv3/common/php/up.php?idOrg=10&idSeason=2&idYear=31&type=2&sortBy=&lang=fr&idTitle=4&imp=1"/>
<iframe id="bottom" name="bottom" style="height:0px; width:0px;" src="http://www.sk-hockey.com/skv3/common/php/bottom.php?idOrg=10" />

</body>
</html>

